home *** CD-ROM | disk | FTP | other *** search
- Path: mozo.cc.purdue.edu!news
- From: jsrobins@expert.cc.purdue.edu (J)
- Newsgroups: comp.lang.c++
- Subject: inheritance and linked lists
- Date: 2 Apr 1996 00:52:19 GMT
- Organization: Undue Perversity
- Message-ID: <4jpto3$k04@mozo.cc.purdue.edu>
- NNTP-Posting-Host: staff2.sla.purdue.edu
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.6
-
- Is there a way to form a linked list of both a base class and its dependents?
- In attempting to do so, I have found that a self-referencing pointer declared
- from within a base class cannot be used in derived classes. As a partial
- solution, I could reference the pointer to the base class sub-class of the
- derived class (get all that?), but then the functionality of the rest of the
- sub-class is no longer accessible via the linked list. Any suggestions would
- be greatly appreciated. Also, I should mention that my C/C++ knowledge could
- use a little work (one goal of this project), so please be kind.
-
- J
- --
- Microsoft Network is prohibited from redistributing this work in any form, in
- whole or in part. Copyright, Jay S. Robinson, 1996. License to distribute
- this post is available to Microsoft for $1,000. Appearance without permission
- constitutes an agreement to these terms. Please send notices of violation to
- Postmaster@microsoft.com and jsrobins@expert.cc.purdue.edu.
-
-